// Copyright (c) 2009 Hypirinha contributers
// This program is made available under the terms of the MIT License.
package org.hypirinha.html.codegen;

import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.hypirinha.html.codegen.MemberExpectations.*;
import static org.hypirinha.html.codegen.MemberExpectations.member;

public class ConstructorTest {

    @Test
    public void shouldRenderWithDoubleIndentedBody() {
        member(new Constructor("TdElement", "Td.Attribute... attributes", "super(attributes);")).shouldRenderTo(
                line(""),
                line("    public TdElement(Td.Attribute... attributes) {"),
                line("        super(attributes);"),
                line("    }")
        );
    }


}